package com.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class IndexController {

    // 后台首页
    @RequestMapping("/")
    public  String  index(){
        return "index";
    }
    // 后台首页
    @RequestMapping("/index")
    public  String  index2(){
        return "index";
    }
    // 后台主页面
    @RequestMapping("/main")
    public  String  main(){
        return "main" ;
    }
    // 登录页面
    @RequestMapping("/login")
    public  String  login(){
        return "login" ;
    }
}
